<html lang="en" xml:lang="en"><head>
<META http-equiv="Content-Type" content="text/html">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><META name="description" content="Describes attributes of map configuration."><meta name="content-language" content="en"><link href="rsrc/htmlhelp.css" rel="stylesheet" type="text/css"><title>Web AppBuilder for ArcGIS | Help - 
Map configuration
</title>
                <script type="text/javascript" language="JavaScript">
                    var pathL  = self.location.pathname.split ("/");
                    var fname = pathL[pathL.length-1];
                    var i = fname.lastIndexOf (".htm");
                    if (i>=0) {
                    fname = fname.substring (0, i)
                    } else {
                    //??
                    }
                    if (self.location.hash) {
				    		      fname = fname + self.location.hash;
						        }
                    self.location.replace ("../index.html#//" + fname);
                </script>
                </head><!--Publication GUID: [GUID-E7D1C130-8F87-4109-8D61-E73A46083F52]--><!--Topic GUID: [GUID-0AE34627-E0DA-4E74-8C42-2428D8D94A11]--><body><div id="content"><div class="header"><h1>
Map configuration
</h1><div id="breadcrumb"></div></div>
<p id="GUID-158D205A-D6CE-48D4-8433-59D25C1BEF67">The following table shows the attributes and descriptions for Map configuration:<div class="block_table" id="TABLE_38B344C2D92643A2A2FC57A513FA2B14" purpose="block_table"><span class="table_title"></span><table class="table"><colgroup width="*"></colgroup><colgroup width="*"></colgroup><tr purpose="thead"><th class="th" purpose="th" rowspan="1" colspan="1"><p id="GUID-FCD788D8-6AE1-4601-BF21-A983A2BE6782">Attribute</p></th><th class="th" purpose="th" rowspan="1" colspan="1"><p id="GUID-02D8BE85-5DF2-438D-9658-C15441783433">Description</p></th></tr><tbody><tr><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-F15D318A-D77A-4C53-985E-96246BFD3642"><span class="usertext">3D</span></p></td><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-0B17BF6A-939F-41EF-954E-EC9549A67CC3">Boolean. Default: false—Identifies whether the map is 3D or 2D. If both 3D and 2D are true, it’s an app with the ability to switch between 3D and 2D (not supported in this version).</p></td></tr><tr><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-72CBFAB3-409D-4C93-8C4F-407C381616DA"><span class="usertext">2D</span></p></td><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-902E24B6-E544-4C10-8E28-D0710936039E">Boolean. Default: true—Identifies whether the map is 2D or 3D? If both 2D and 3D are true, it’s an app with the ability to switch between 2D and 3D (not supported in this version).</p></td></tr><tr><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-CE748584-FA59-410B-85BD-5C5CD8031F4C"><span class="usertext">itemId</span></p></td><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-C9E2F164-B150-410F-B1DE-C59C4016DC8C">string—Identifies if webmapID or websceneID.</p></td></tr><tr><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-4247CA1E-583D-49E0-95EC-3512D5C7E2AD"><span class="usertext">mapOptions</span></p></td><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-3B9FDA97-16A4-4D3E-8ACC-94DB79F4DC8E">object—This property is the same as the map API.</p></td></tr><tr><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-D6C29B70-5D20-4E2A-BCDF-D585E0D36310"><span class="usertext">position</span></p></td><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-7E6A4075-DBE6-4B40-AAF4-816D4301D40C">object—This property is the same as the widget position.</p></td></tr><tr><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-6666FE10-1627-482F-8715-B00DFC3CA028"><span class="usertext">portalUrl</span></p></td><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-B94B8CA3-E837-400D-9410-9AA3E23073EB">string—The URL where the webmap is hosted. If not set, the app's portalUrl property is used. </p></td></tr><tr><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-9EC94A1B-9D1A-46A8-AF41-B205D3183AE2"><span class="usertext">appProxy</span></p></td><td purpose="entry" rowspan="1" colspan="1"><p id="GUID-69140E91-A05C-4AC8-92A2-D2A44995DBF2">object—Contains the proxy information for the premium map service layer. It has the following two properties:</p><ul purpose="ul" id="UL_9F07BE9B07E04D8F9B1B645C6F9B1781"><li purpose="li" id="LI_2C4F7A9944134ADC961C5A2CA94165FE">mapItemId—string. The web map ID.</li><li purpose="li" id="LI_F709FE2E3A654624960CEC3BED51FFED">proxyItems—array. The array of proxy item for map services. Each proxy item contains the following parameters:<ul purpose="ul" id="UL_2C3200D3BE154E4493AD9D39DC0C27A6"><li purpose="li" id="LI_041D3F5503E14D06A55685C3C64B58FE">sourceUrl—string. The URL of the premium map service layer.</li><li purpose="li" id="LI_7B036C69C09B45B4A14C3EF96CFCF00B">proxyUrl—string. The proxy URL for the source URL.</li><li purpose="li" id="LI_A17B87DEE932448684212F015E9375F2">title—string. The label for the source URL.</li><li purpose="li" id="LI_066DA77426CC477FB9C37D28A2D68435">consumeCredits—Boolean. Identifies whether this service consumes credits.</li><li purpose="li" id="LI_380EC8C44A8D4FDC8409F6F904F831F8">proxyId—string. The proxy ID registered in ArcGIS Online.</li><li purpose="li" id="LI_210AFD68661C4104805EF9916D949FCE">useProxy—Boolean. Determines whether to use the proxy URL to replace the source URL.</li></ul></li></ul></td></tr></tbody></table><span class="table_desc"></span></div></p><p id="GUID-8F7E9D36-C1D2-4EA7-A334-D309113242A7">Example:</p><div class="codeblock" purpose="codeblock"><div class="highlight"><pre><code>&quot;map&quot;: {
    
    &quot;3D&quot;: false,
    &quot;2D&quot;: true,
    &quot;portalUrl&quot;: &quot;&quot;,
    &quot;itemId&quot;: &quot;&quot;,
    &quot;position&quot;: {
      &quot;left&quot;: 0,
      &quot;top&quot;: 0,
      &quot;right&quot;: 0,
      &quot;bottom&quot;: 30,
      &quot;width&quot;: 100,
      &quot;height&quot;: 100
    },

    &quot;mapOptions&quot;: {
      &quot;extent&quot;: {
        &quot;xmin&quot;: 20, &quot;xmax&quot;: 30, &quot;ymin&quot;: 40, &quot;ymax&quot;: 50, &quot;spatialReference&quot;: {&quot;wkid&quot;: 4326}
      },
      &quot;center&quot;: &quot;&quot;,
      &quot;level&quot;: 3
    },

				&quot;appProxy&quot;: {
      &quot;mapItemId&quot;: &quot;6ba5d2b530a84d9d87e217aff44f3cbf&quot;,
      &quot;proxyItems&quot;: [
        {
          &quot;sourceUrl&quot;: &quot;http://demographics1.arcgis.com/arcgis/rest/services/USA_Demographics_and_Boundaries/MapServer&quot;,
           &quot;title&quot;: &quot;USA_Demographics_and_Boundaries&quot;,
          &quot;consumeCredits&quot;: true,
          &quot;useProxy&quot;: true,
          &quot;proxyUrl&quot;: &quot;http://utility.arcgis.com/usrsvcs/appservices/RPSyFj4IiBPxqMbd/rest/services/USA_Demographics_and_Boundaries/MapServer&quot;,
          &quot;proxyId&quot;: &quot;RPSyFj4IiBPxqMbd&quot;
        }
      ]
    }
  },
</code></pre></div>
</div>
<div class="footer"> Copyright © 1995-2016 Esri. All rights reserved. </div></div></body></html>